package com.chenbei.erp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenbei.common.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "仓库订单")
@TableName("erp_inventory_order")
public class InventoryOrder extends BaseEntity {

    @Schema(description = "主键ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "订单类型")
    @TableField("type")
    private Integer type;

    @Schema(description = "批次号")
    @TableField("batch_number")
    private String batchNumber;

    @Schema(description = "入库仓库ID")
    @TableField("in_warehouse_id")
    private Long inWarehouseId;

    @Schema(description = "出库仓库ID")
    @TableField("out_warehouse_id")
    private Long outWarehouseId;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "状态[0:申请|1:确认|9:废弃]")
    @TableField("status")
    private Integer status;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "总价")
    @TableField("total_price")
    private BigDecimal totalPrice;
}
